//
// File: client.h
// Description: 
//

#ifndef CLIENT_H
#define CLIENT_H

#include "protocol.h"
#include "socket.h"
#include "database.h"

enum ClientState {
	AUTH = 0, // waiting to log in/create user/authenticate
	GAME // in the game
};

class Client {
private:
	bool alive;
	ClientState state;
	Socket & s;

	int loginState();
	int gameState();
public:
	Client(Socket &s);
	void run();
	
};


#endif
